package com.emep.changzhi.analyse.repository.basics;

import com.emep.changzhi.analyse.entity.basics.SysEmployee;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface SysEmployeeRepository extends BaseRepository<SysEmployee,Integer> {

    SysEmployee findById(int id);
    List<SysEmployee> findAllByDeppartid(int id);
    List<SysEmployee> findAllByName(String name);
    List<SysEmployee> findAllByNameAndIdNot(String name,int id);
}
